﻿using System;

namespace DataCenter.Utility
{
    public class ComboBoxItem
    {
        public ComboBoxItem(string text)
        {
            this.text = text;
        }
        public ComboBoxItem(string text, object tag)
        {
            this.text = text;
            this.tag = tag;
        }

        private string text;
        private object tag;

        public string Text
        {
            get { return text; }
            set { text = value; }
        }
        public object Tag
        {
            get { return tag; }
            set { tag = value; }
        }
        public ComboBoxItem Item
        {
            get { return this; }
        }

        public override string ToString()
        {
            return text;
        }
    }
}
